#!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: wang donghao
# Date  : 2020.6
# Email : dd.parkhere@gmail.com
###################################################################
import os
launch_env = {
    "Maya": {
        "Env": [
            {
                "mode": "post",
                "name": "MAYA_UI_LANGUAGE",
                "value": "en_US"
            },
            {
                "mode": "over",
                "name": "MAYA_DISABLE_CLIC_IPM",
                "value": "1"
            },
            {
                "mode": "over",
                "name": "MAYA_DISABLE_CER",
                "value": "1"
            },
            {
                "mode": "over",
                "name": "MAYA_DISABLE_CIP",
                "value": "1"
            },
            {
                "mode": "pre",
                "name": "MAYA_MODULE_PATH",
                "value": "//10.10.98.51/anime_srv/app_store/maya_modules"
            },
            {
                "mode": "pre",
                "name": "XBMLANGPATH",
                "value": os.environ['WOKWOK_ROOT'] + '/resources/icons/maya_icons'
            },
        ],
        "Exec": "C:/Program Files/Autodesk/Maya2020/bin/maya.exe",
        "GroupBox": "DCC",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/maya2020.jpg'
    },
    "Nuke": {
        "Env": [
            {
                "mode": "over",
                "name": "RLM_LICENSE",
                "value": '5053@10.10.98.51'
            },{
                "mode": "pre",
                "name": "NUKE_PATH",
                "value": "//10.10.98.51/anime_srv/app_store/nuke_plugins"
            },
        ],
        "Exec": '\"C:/Program Files/Nuke12.2v4/Nuke12.2.exe\" --nukex',
        "GroupBox": "DCC",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/Nuke 12.1.jpg'
    },"Katana": {
        "Env": [
            {
                "mode": "over",
                "name": "RLM_LICENSE",
                "value": '5053@10.10.98.51'
            }
        ],
        "Exec": 'C:/Program Files/Katana4.0v1/bin/katanaBin.exe',
        "GroupBox": "DCC",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/katana.png'
    },
    "PS": {
        "Env": "",
        "Exec": "C:/Program Files/Adobe/Adobe Photoshop 2020/Photoshop.exe",
        "GroupBox": "DCC",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/Ps.jpg'
    },"SG": {
        "Env": "",
        "Exec": "explorer https://wonderium.shotgunstudio.com/",
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/SG.png'
    },"SSO": {
        "Env": "",
        "Exec": "explorer https://sso.mihoyo.com/home",
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/sso.png'
    },"KM": {
        "Env": "",
        "Exec": "explorer https://km.mihoyo.com/articleBase/223/31318",
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/km.jpg',
        'Display': u'知识库'
    }, u"vedioStation": {
        "Env": '',
        # "Type": 'execfile',
        "Exec": '''explorer "http://10.8.19.23:5000/?launchApp=SYNO.SDS.VideoStation.AppInstance#!libanime/N4IgNglgRgTghjAniAXCAFgewLYFMD6AbhACa6YC0ALCADQgDGcALrgOaZKogBmmYZGHRAAHOG1yoAjAF8gA"''',
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/plex.png',
        'Display': u'媒体库'
    }, u"SK": {
        "Env": "",
        "Type": "bat",
        "Exec": u"Z:/Animation/【资源】/软件from东东/色卡工具/start.bat",
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/cc.jpg',
        'Display': u'色卡'
    },u"SaveHinter": {
        "Env": "",
        "Type": 'execfile',
        "Exec": os.environ['WOKWOK_ROOT'] + '/widgets/launcher/scripts/save_hinter/save_hinter_settings.py',
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/saveHinter.png',
        'Display': u'保存提醒'
    },u"SGDM": {
        "Env": "",
        "Type": 'execfile',
        "Exec": os.environ['WOKWOK_ROOT'] + '/widgets/launcher/scripts/sg_download_manager/run.py',
        "GroupBox": "SYS",
        "Icon": os.environ['WOKWOK_ROOT'] + '/resources/icons/soft_thumb/sgdm.png',
        'Display': u'SG下载器'
    },
}
